corrected flash alerts for the registration process