Half-working attempt at basic authentication