improved login dialog