fixed chatroom functions input