removed comparision of class type in equals method as it is too restrictive when comparing against classes extended from User