removed the empty condition in get_password