chatfactory was incorrectly defined to be a controller
validRoom function needs fix