Cleaning up login process