Implement required and pattern validation