finish password functions