Solves Bug#7179

Solves problem editing password when username=email