improved login dialog layout