added Chat.h for authentication