fix login sort of