Added a temp method for generating group tokens to avoid crashes where group token is nil. Group token is now also generated when a user model is created