Updated the HashCalculator class to add some more functionality

Used the HashCalculator in the User class