Cleanup and user registration