Authenticate method in ChatManager

Added support for authentication in ChatManager class