fixing bug to display message error on login view