implemented Hash and User classes and updated register and index pages