bug with my classes login_required