do model validations and create a imageurl validator