fixed the issue when password was not found