Change of the login logic and add display errors on login fields