added login dialog