make registration form work