A lightweight validator for mobile