Added validations functionality for url model