get user login and error messaging working