added error statemnet to login view