finished validation for registration
finished validation for registration