Get logout and cookies working properly