Added a hashing function
Start of Registeration refactor