ensured wrong username and password functionality for login dialog