added registration form handlers