Ajax submit but still saving twice