Added error message for login code