log the login process