query bug fixed
auth.php changes