added url validation to model