Added max input length

Added max input lenght for nick name and message.