Modified User class, added equals method.