fix user login process