add registration validation