switched authentication to php. this might get rough... revert this commit if necessary