why is my form only allowed to be submitted once?