validation html5, phonegap