added registration form, validation