Urgent: getting error on submission and losing data