add cookie functionality - only for ensuring no double-submits