beautified login, added directives for on-key-up and on-enter