cleaning up login and registration