Fixed AJAX for adding vehicles and log entries.