Fixed bugs in form workflow
Added mail sending capabilities