Check values in user_edit to avoid sqlite integrity errors