Fixed a login bug belonging to the old_password check

Signed-off-by: René Meye <rene@meye.md>