Pre-registration action not showing right error message