fix profile submit bugs

fixes https://github.com/opentechinstitute/luci-commotion/issues/34 and https://github.com/opentechinstitute/luci-commotion/issues/35