RegisterValidation refactored
Implementation of registration