Fix. the wrong check passwd