improved layout for login dialog
improved login dialog to show error message