added an error message if login fails.