clean up login process