improved login dialog specs
simplified code