Added user and room name validity check