Removed stuff not needed for cookie auth