adding login stuff and changed routes