Ajax form and middleware added