Ajax for both forms