Added requiredMessage attribute