modify equals method of User