fix registration for validation