$("#form-add").on('submit', function() {
if ($("#form-add").valid()) {
alert('succesfull');
document.location.href = BASE_URL+"admin/inicio";
}else {
alert("no valido");
}
});