remove required field attr when it's hidden.