fixed Validate button in the generic modal window