Improved login screen, seperated dialog into new class