Improvements to login dialog