BUG FIX: isntLoginFunc is not executed properly