Add check to ensure cookies are enabled

Closes #4