added getUserPassword function