added close button to the login dialog