Fixed _drupalgap_form_validate() to properly check the value on fields.