New password editor

- Fix some bugs in email editor