Fix crash in login with incorrect password by renaming delete to remove

issue3346
review1044002