Update check.php

sanitize, etc...