why is my form not working properly