How to close the registration form?