Added ajax call to form submit