fixing required error message.