validate custom data to prevent submission errors

http://manage.dimagi.com/default.asp?142187
Should we add restrictions to custom user data to prevent this?