Added validation for presence of model name