Cleanup register form.