Fixed CGI auth script