fix to required message issue