add validations to log a game with error messaging