updating for password update condition