Javascript offline, Validator: registrarCliente