added validation for the urlpart field