How to log in, create a new chat and a group chat