changed logout from post to delete