refactored validate registration params