Fixed bug in authentication service

Set globals to empty object on logout instead of deleting because the
globals.currentUser object is used to check if the user is logged in.