cleaned up the new sumbit form function

Will test now