added some methods for processing the registration form