Client generation and login is a common task and we can use a helper. We can do it later too. Same goes for "messages" checking.