adds auth and login stuff