Added Validation To Register Model