Moved Password functionality into Password class