Minor bug fixes for login form