fix profile submit bugs

fixes https://github.com/opentechinstitute/luci-commotion/issues/34 and https://github.com/opentechinstitute/luci-commotion/issues/35

<!---
@huboard:{"order":17.4375}
-->