displaying error message if login failed