RES: Help with external authentication using PHP