converted everything over to php files and login and registration works on localhost