Added custom password retrieval function to avoid having to add a function for each password type.