handling if user fails logging in