another try to fix login decorator