502 Gateway error not allowing the forms to be submitted