added validation for room creation