finally got the registration form to work