else
{
//user is new
//echo 'Hi '.$user_name.', Thanks for Registering!';
debug_to_console("user registered");
/* echo '
showAlert("PLEASE REGISTER FROM ANY ANDROID DEVICE AND THEN TRY LOGIN ");';*/
echo '<script type="text/javascript">';
/* echo 'function showAlert()';
echo '{';
echo 'alert("pls register from device")';
echo '}';*/
echo 'showAlert();';
echo '</script>';
unset($_SESSION['token']);
$gClient->revokeToken();
header('Location: ' . filter_var($google_redirect_url, FILTER_SANITIZE_URL)); //redirect user back to page