fix param sanitizating for account editing

Should fix #337 and #340.