Method Ajax for form applied