beginning login stuff added