some preliminary login stuff