fix login stuff