registration form with validation and image saver