Some fixes for the login form