Validation of get variable for error.php
Moved shortener validation to class