Updated logout function to use HTTP verb delete.