added functionality for handling passwords on hp