Added more methods for password retrieval and regeneration.