password retrieval function done