started cookie and json validation