Added login view and adding authentication to http requests