registration validation