fixes form path up to adding to DB