cleanup of the login and registration process