Moved shortener validation to class