fixing login stuff