fixed the form not posting correctly by adding the method attribute