fix login issues