An elegant way to compose login credentials