validation for login name
avoid timing issues on login
fix event handling if new user from server
fix login view