fixed cross origin issues; commented out unfinished authentication code to be worked on later