password functions added.