Add user cookie verification and cookie secure setting