Set a maximum length for register information to avoid trouble with the database.

Small changes in the override of Equals in Room and GroupModel.
Used "is" keyword to avoid casting troubles.