Check.php redirects properly now