title: Facebook like login screen and validation(Window Shake Effect)
body: <p>I need my login screen look like the following.</p>
  
  <p>In <code>Facebooks</code> login, if you leave the username or password fields blank and click the Log in button, the <code>user name</code> and <code>password</code> fields vibrates (as in shakes).</p>
  
  <p>How is this done ?</p>
  
  <p><img src="https://i.stack.imgur.com/BJvMe.jpg" alt="enter image description here"></p>