added login logic to server and client, added config file, jwt token is added to session on login