Changed login.js, Calling login() on hitting Enter