Fix registration error messages validation