access: fix mail cookie check
Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch> Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>