control errores + img upload