stores and retrieves password, wrote it for learning purposes