Adding check to make sure we did not get an HTTP Error
Updating fetch function to keep track of session information and enable SSL
Adding function to log in a user