close #11 Fixing bug where post didn't work when cookie is not present