Added required field validation