Update validate.php

changed Request::ok() for Request::json()