fix registration error message