login dialog now working