Added error message when login fails