added login dialog box