Reworked login dialog