Added validateRequiredFields